<div class="row dialog">
    <div class="col-md-12">
        <div class="card">
            <div class="card-header card-header-inverse">
                <h4 class="card-header-title">
                    创建参数配置
                </h4>
            </div>
            <div class="card-content">
                <form class="pageForm" method="post" action="<?= \yii\helpers\Url::to(['/configs/create/'])?>" data-validator-option="{theme: 'yellow_top',timely:2, focusCleanup:true}">
<div class="row">&nbsp;</div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">参数键</label>
                                <input type="text" name="CfgKey" class="form-control form-control-sm" data-rule="参数键:required;length(4~20)" value="<?= @$configs['CfgKey']?>" maxlength="32" <?= empty(@$configs['CfgKey']) ? '' : 'disabled'?>>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">参数值</label>
                                <input type="text" name="CfgVal" class="form-control form-control-sm" data-rule="参数值:required;length(1~350)" value="<?= @$configs['CfgVal']?>" maxlength="100">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">可选项</label>
                                <input type="text" name="CfgOptions" class="form-control form-control-sm" value="<?= @$configs['CfgOptions']?>" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">键值对描述</label>
                                <input type="text" name="CfgDescribe" class="form-control form-control-sm" value="<?= @$configs['CfgDescribe']?>" maxlength="32">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <input type="hidden" name="txt_ID" value="<?= @$configs['CfgKey']?>" />
                                <button type="submit" class="btn btn-fill btn-primary pull-right">确认提交</button>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div>
        </div>
    </div>
</div>